import request from '@/plugin/axios'

export function loadAllRole (data) {
  return request({
    url: '/role/list',
    method: 'get',
    params: data
  })
}

export function addRole (data) {
  return request({
    url: '/role/add',
    method: 'post',
    data
  })
}
